FROM golang

ENV GO111MODULE=on \
    GOPROXY=https://goproxy.io,direct \
    CGB_ENABLED=0 \
    GOOS=linux \
    GOARCH=amd64

WORKDIR /usr/src/app/simplehttp
COPY . /usr/src/app/simplehttp
RUN go build .

EXPOSE 8600
ENTRYPOINT ["go","run","/usr/src/app/simplehttp/main.go"]